import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '@/views/Reg.vue/reg.vue'
import Login from '@/views/Login.vue/login.vue'

Vue.use(VueRouter)

const routes = [
 {
  path:'/reg',
  name:'reg',
  component:Reg
 },
 {
  path:'/login',
  name:'login',
  component:Login
 }
]

const router = new VueRouter({
 routes
})

export default router